<mui:ModernWindow x:Class="EdiApp.Views.Shell.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mui="http://firstfloorsoftware.com/ModernUI"
          
        xmlns:view="clr-namespace:EdiApp.Views.Shell"

        xmlns:behav="clr-namespace:Edi.Core.Behaviour;assembly=Edi.Core"

        xmlns:ADBehav="clr-namespace:EdiApp.Behaviors"
        xmlns:ADView="clr-namespace:EdiApp.Views"

        Title="{Binding ApplicationTitle}"
        Icon="/Edi;component/EdiLogo.ico"
        behav:DialogCloser.DialogResult="{Binding DialogCloseResult}"        
        behav:WindowMaximized.IsNotMaximized="{Binding IsNotMaximized,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
        ADBehav:GetADLayoutOnWindowClosedCommand.SendLayoutCommand="{Binding ADLayout.SaveLayoutCommand}"
        ADBehav:ActivatedCommand.Command="{Binding MainWindowActivated}"
        >
    <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

    <view:MainToolbar Grid.Row="0" SnapsToDevicePixels="True" Margin="3,0" />

    <ADView:AvalonDockView  Grid.Row="1" x:Name="dockView" x:FieldModifier="private" />
  </Grid>

</mui:ModernWindow>
